package com.meiwenhui.sishuwujing.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.meiwenhui.sishuwujing.entities.Chapter;
import com.meiwenhui.sishuwujing.entities.ChapterExample;
import com.meiwenhui.sishuwujing.mapper.ChapterMapper;
import com.meiwenhui.sishuwujing.service.ChapterService;

@Service("chapterServiceImpl")
public class ChapterServiceImpl implements ChapterService {

	@Autowired
	private ChapterMapper chapterMapper;
	
	public List<Chapter> selectByExample(ChapterExample example) {
		return chapterMapper.selectByExample(example);
	}

	public int countByExample(ChapterExample example) {
		return chapterMapper.countByExample(example);
	}

}
